package com.gitee.huxing.course.conc.conc02.atomic;

/**
 * @Description:
 * @ProjectName: JavaCourse
 * @Package: com.gitee.huxing.course.conc.conc02
 * @ClassName: Count
 * @Author: huxing
 * @DateTime: 2021-08-23 上午10:14
 */
public class Count {

    private int num = 0;

    public int add(){
        return num++;
    }

    public int getNum(){
        return num;
    }
}
